<template>
  <!-- <div> -->
    <el-container>
      <el-aside :style="{width:iscollspase} " >
        <!-- 引入组件aside -->
       <com-aside >
       </com-aside>
      </el-aside>
      <el-container>
        <el-header>
          <!-- 引入组件header -->
          <com-header></com-header>
        </el-header>
        <el-main>
          <router-view>
          </router-view>
        </el-main>
      </el-container>
    </el-container>

  <!-- </div> -->
</template>

<script>

import ComAside from '../src/components/ComAside.vue'
import ComHeader from '../src/components/comHeader.vue'

// import ComAside from '@/components/comAside'
export default {

  components: {
    ComAside,
    ComHeader
},
 
  data() {
    return {

    }
  },
  computed:{
    iscollspase(){
      
      return this.$store.state.tab.isCollapse ? '65px':'200px'
    }
  }

}
</script>

<style lang="less" scoped>
body{
  margin: 0px;
  padding: 0px;
}

.el-main {
  padding-top: 0;
}

.el-container {
  padding-top: 0;
}
.el-header{
        padding: 0;
        display: flex;
        // text-align: ;
        align-items: center;
        // min-width: calc(100vw - 230px);
        // background-color: #333;
        background-color: #d0ecfd;
    }

  .el-aside {
      overflow: hidden;
      white-space: nowrap;
      text-overflow: clip;
      background-color: #d0ecfd;
    height: 100%;
    border: none;
     
}
    
</style>